<template>
<div class="address-list-item">
  <!--<label>-->
    <!--<input type="radio" :value='inputValue' v-model="current">-->
    <div class="inner tail-arrow">
      <div class="info">
        <span>{{data.ex_name}}</span>
        <span>{{data.ex_phone}}</span>
      </div>
      <div class="address">
        <span v-if='this.default' class='default'>{{'[默认]'}}
        </span>
        <span>{{data.ex_address}}</span>
      </div>
    </div>
  <!--</label>-->
</div>

</template>

<script>
  export default {
    name: 'addressListItem',
    props:['data'],
    data () {
      return {
        // current:this.value
      }
    },
    computed:{
      default(){
        return parseInt(this.data.def)
      }
    },
    watch: {
      // value (val){
      //     this.current = val
      // },
      // 'current' (val) {
      //   this.$emit('input',val)
      // }
    }
  }
</script>

<style lang="scss" scoped>
 @import 'item.scss' 
</style>